<?php
    function css_tag($css_name) {
        echo '<link rel="stylesheet" href="' . URL_CSS . "$css_name" . '" type="text/css" />';     
    }

    function js_tag($js_name = null, $inline_js = null) {
        echo '<script type="text/javascript" ';

        if (!empty($js_name))
            echo 'src="' . URL_JS . "$js_name" . '"';
        echo ">";
        if (!empty($inline_js))
            echo "//<!--<![CDATA[\n$inline_js\n//]]>-->\n";
        echo '</script>';
    }

    function img_tag($img_name, $info_array = null) {
        echo '<img src="' . URL_IMAGE . "$img_name" . '" ';
        if ($info_array != null) {
            foreach($info_array as $info => $value)
                echo "${info}=\"${value}\" ";  
        }
        echo " />";
    }